<?php
/*
+ --------------------------------------------------- +
|  Ineo Article Manager - Version 2.x
|  Copyright 2006-2007, Dan Cryer and William McGann
+ --------------------------------------------------- +

Ineo Article Manager is free software; you can redistribute it and/or modify
it under the terms of version 3 of the GNU General Public License as published by
the Free Software Foundation.

Ineo Article Manager is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Ineo; see the file License.txt.  If not, write to
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.

*/

/**
* Ineo - Modules - Admin CP Overview
*
* @package		Ineo
* @subpackage   Modules
* @copyright	2006, Veriea
*/
class ineo_mod_acp_settings
{
	/**
	* Variable Setup
	*/
	var $ipsclass;
	var $core;
	
	/**
	* Initialize
	*/
	function module_init()
	{
		// ACP Module, Do nothing if not in ACP!
		if( !IN_ACP )
		{
			return false;
		}
	}
	
	/**
	* Default Function for this module:
	*/
	function module_default()
	{
		return $this->settings();
	}
	
	function settings()
	{
		// Set up page title / description:
		$this->ipsclass->admin->page_title = 'Ineo Settings';
		$this->ipsclass->admin->page_detail = 'These settings allow you to control how Ineo works and customize it for your web site.';

		// Load, configure and run the IPB settings class:
		require_once( ROOT_PATH  . 'sources/action_admin/settings.php' );

		$settings                     =  new ad_settings();
		$settings->ipsclass           =& $this->ipsclass;
		$settings->get_by_key         =  'ineo';
		$settings->return_after_save  =  'section=components&act=ineo&module=settings';

		$settings->setting_view();
	}

}
?>